package com.culture.config.dao.mapper;

import java.util.List;

import com.culture.config.dao.entity.AppInstance;
import com.culture.config.dao.entity.AppInstanceQuery;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;

@Mapper
public interface AppInstanceMapper {
    AppInstance get(@Param(value="id") Long id);
	AppInstance getByName(AppInstance appInstance);
	List<AppInstance> listByName(@Param(value="name") String name);
	List<AppInstance> listByAppId(@Param(value="appId") Long appId);
	Page<AppInstance> page(AppInstanceQuery appInstanceQuery);
	int add(AppInstance appInstance);
	int update(AppInstance appInstance);
}
